package com.hlkj.warboot.configurer.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Description 文件上传配置参数
 * @Author 李星
 * @Date 2019/6/29 22:50
 */
@Component
@PropertySource("classpath:config.properties")
@ConfigurationProperties(prefix = "upload")
@Data
public class UploadFileProperties {
    // 文件上传路径
    private String imageRelativePath;
    private String excelRelativePath;
    private String worldRelativePath;
    private String pdfRelativePath;
    private String txtRelativePath;
    // 文件上传大小
    private int imageSize;
    private int excelSize;
    private int worldSize;
    private int pdfSize;
    private int txtlSize;
}
